import request from '@/utils/request'

// 查询候选人审批规则列表
export function listApproveCandidateRule(query) {
  return request({
    url: '/flowable/approveCandidateRule/list',
    method: 'get',
    params: query
  })
}

// 查询候选人审批规则详细
export function getApproveCandidateRule(candidateRuleId) {
  return request({
    url: '/flowable/approveCandidateRule/' + candidateRuleId,
    method: 'get'
  })
}

// 新增候选人审批规则
export function addApproveCandidateRule(data) {
  return request({
    url: '/flowable/approveCandidateRule',
    method: 'post',
    data: data
  })
}

// 修改候选人审批规则
export function updateApproveCandidateRule(data) {
  return request({
    url: '/flowable/approveCandidateRule',
    method: 'put',
    data: data
  })
}

// 删除候选人审批规则
export function delApproveCandidateRule(candidateRuleId) {
  return request({
    url: '/flowable/approveCandidateRule/' + candidateRuleId,
    method: 'delete'
  })
}
